home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C04 / egcs.makefile < prev    next >
Encoding:
Makefile  |  2000-05-25  |  1.3 KB  |  62 lines

  1. # From Thinking in C++, 2nd Edition
  2. # At http://www.BruceEckel.com
  3. # (c) Bruce Eckel 1999
  4. # Copyright notice in Copyright.txt
  5. # Automatically-generated MAKEFILE 
  6. # For examples in directory C04
  7. # using the egcs compiler
  8. # Note: does not make files that will 
  9. # not compile with this compiler
  10. # Invoke with: make -f egcs.makefile
  11.  
  12. CPP = g++
  13. OFLAG = -o
  14. .SUFFIXES : .o .cpp .c
  15. .cpp.o :
  16.     $(CPP) $(CPPFLAGS) -c $<
  17. .c.o :
  18.     $(CPP) $(CPPFLAGS) -c $<
  19.  
  20. all: \
  21.     CLibTest \
  22.     CppLibTest \
  23.     Sizeof \
  24.     StackTest \
  25.     Scoperes 
  26.  
  27. test: all 
  28.     CLibTest  
  29.     CppLibTest  
  30.     Sizeof  
  31.     StackTest NestTest.cpp 
  32.     Scoperes  
  33.  
  34. bugs: 
  35.     @echo No compiler bugs in this directory!
  36.  
  37. CLibTest: CLibTest.o CLib.o 
  38.     $(CPP) $(OFLAG)CLibTest CLibTest.o CLib.o 
  39.  
  40. CppLibTest: CppLibTest.o CppLib.o 
  41.     $(CPP) $(OFLAG)CppLibTest CppLibTest.o CppLib.o 
  42.  
  43. Sizeof: Sizeof.o 
  44.     $(CPP) $(OFLAG)Sizeof Sizeof.o 
  45.  
  46. StackTest: StackTest.o Nested.o 
  47.     $(CPP) $(OFLAG)StackTest StackTest.o Nested.o 
  48.  
  49. Scoperes: Scoperes.o 
  50.     $(CPP) $(OFLAG)Scoperes Scoperes.o 
  51.  
  52.  
  53. CLib.o: CLib.cpp CLib.h 
  54. CLibTest.o: CLibTest.cpp CLib.h 
  55. CppLib.o: CppLib.cpp CppLib.h 
  56. CppLibTest.o: CppLibTest.cpp CppLib.h ../require.h 
  57. Sizeof.o: Sizeof.cpp CLib.h CppLib.h 
  58. Nested.o: Nested.cpp Stack.h ../require.h 
  59. StackTest.o: StackTest.cpp Stack.h ../require.h 
  60. Scoperes.o: Scoperes.cpp 
  61.  
  62.